﻿<phone:PhoneApplicationPage 
    x:Class="XiaMiRingtone.editring"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush  x:Name="Ib" />
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="PageTitle" Text="" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Height="88" />
            <MediaElement Name="mediaElement1" Width="160" Volume="1" />
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            
           <StackPanel>
                <TextBlock Text="提示：" FontSize="26" />
                <TextBlock Text="      铃声长度必须在40秒以内。如果在40秒内也不能设置为铃声，请再调小铃声长度，直到成功设置。" TextWrapping="Wrap" />
            </StackPanel>
           <Canvas Height="58" HorizontalAlignment="Left" Margin="54,389,0,0" Name="canvas1" VerticalAlignment="Top" Width="330">
                <Canvas.RenderTransform>
                    <RotateTransform Angle="180" CenterX="165" CenterY="0"></RotateTransform>
                </Canvas.RenderTransform>
                <Slider Height="90" Name="slider2" Width="348" Orientation="Horizontal" IsDirectionReversed="False" ValueChanged="slider2_ValueChanged" Canvas.Left="-24" Canvas.Top="-3" SmallChange="1" />
            </Canvas>
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="56,188,0,0" Name="textBlock1" Text="开始时间： " VerticalAlignment="Top" Width="351" />
            <TextBlock Height="30" Name="textBlock2" Text="结束时间：" Margin="56,389,49,188" />
            <Slider Name="slider1" ValueChanged="slider1_ValueChanged" Margin="56,224,49,303" Height="90" SmallChange="1" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="56,296,0,0" Name="textBlock3" Text="铃声长度：" VerticalAlignment="Top" Width="351" />
            <Button Content="试听铃声" Height="72" HorizontalAlignment="Left" Margin="56,488,0,0" Name="button1" VerticalAlignment="Top" Width="160" Click="button1_Click" />
            <Button Content="设为铃声" Height="72" HorizontalAlignment="Right" Margin="0,488,49,0" Name="button2" VerticalAlignment="Top" Width="160" Click="button2_Click" />
        </Grid>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
